package br.com.intelsys.basics.dao;

public class EntityNotFoundDaoException extends DaoException {
	private static final long serialVersionUID = -2947113878870751473L;
	private int entityCode;

	public EntityNotFoundDaoException(int entityCode) {
		super(0, "Entity not found: " + entityCode);
		this.entityCode = entityCode;
	}

	@Override
	public boolean isConstraintViolation() {
		return false;
	}

	public int getEntityCode() {
		return entityCode;
	}

}
